import { fetch } from '@/utils/fetch'

export function getInTheaters (start, count) {
  return fetch(`/api/movie/in_theaters?start=${start}&count=${count}`)
}

export function getDetail (id) {
  return fetch(`/api/movie/subject/${id}`)
}

export function getTop250 (start, count) {
  return fetch(`/api/movie/top250?start=${start}&count=${count}`)
}

export function getComingSoon (start, count) {
  return fetch(`/api/movie/coming_soon?start=${start}&count=${count}`)
}
